[PWGLF] Add a workflow for (anti)triton analysis#17151
Conversation
|
O2 linter results: ❌ 1 errors, |
|
Error while checking build/O2Physics/staging for 3da74bd at 2026-07-21 14:55: Full log here. |
|
Error while checking build/O2Physics/code-check for bc69f0c at 2026-07-21 16:49: Full log here. |
vkucera
left a comment
There was a problem hiding this comment.
Since you are adding a new file, make sure it's clean from errors and warnings.
| std::pair<int, std::vector<float>> TPCcuts; | ||
| std::pair<int, std::vector<float>> TOFcuts; | ||
|
|
||
| static constexpr float kMassTriton = o2::constants::physics::MassTriton; // GeV/c^2 |
There was a problem hiding this comment.
- Follow the O2 naming conventions. This is not ROOT. Don't use the
kprefix. - You just created an unnecessary alias for an existing constant. Use the constant directly.
| std::pair<int, std::vector<float>> ITScuts; | ||
| std::pair<int, std::vector<float>> TPCcuts; | ||
| std::pair<int, std::vector<float>> TOFcuts; |
There was a problem hiding this comment.
Follow naming conventions.
| std::shared_ptr<TH1> eta; | ||
| std::shared_ptr<TH2> eta_to_y; | ||
| std::shared_ptr<TH1> y; | ||
| std::shared_ptr<TH1> phi; | ||
| std::shared_ptr<TH1> p; | ||
| std::shared_ptr<TH1> pt; | ||
| std::shared_ptr<TH2> dcaxy_to_p; | ||
| std::shared_ptr<TH2> dcaxy_to_pt; | ||
| std::shared_ptr<TH2> dcaz_to_p; |
There was a problem hiding this comment.
Follow naming conventions.
| } | ||
|
|
||
| template <typename TrackType> | ||
| static float getMTOF(const TrackType& track) |
There was a problem hiding this comment.
Follow naming conventions.
| void fillHistSet(HistSet& h, const TrackType& track, int pdg) | ||
| { | ||
| const float mass = kMassTriton; | ||
| const auto y = static_cast<float>(RecoDecay::y(std::array{track.px(), track.py(), track.pz()}, mass)); |
There was a problem hiding this comment.
| const auto y = static_cast<float>(RecoDecay::y(std::array{track.px(), track.py(), track.pz()}, mass)); | |
| const auto y = static_cast<float>(RecoDecay::y(track.pVector(), mass)); |
There was a problem hiding this comment.
This track type doesn't have a pVector() accessor.
|
Error while checking build/O2Physics/code-check for 890b1bd at 2026-07-25 12:16: Full log here. |
|
Error while checking build/O2Physics/code-check for 53d0a1a at 2026-07-27 05:02: Full log here. |
|
Error while checking build/O2Physics/code-check for 963093b at 2026-07-27 07:25: Full log here. |
Summary
Adds a new workflow for measuring (anti)triton production in Run 3 data
Dependencies
Uses output of the o2-analysis-cf-single-track-selector (https://aliceo2group.github.io/analysis-framework/docs/datamodel/pwgTables.html)
Links
Presented at the Nuclei and Exotica PAG meeting on Thursday, 16th July, 2026 (https://indico.cern.ch/event/1688019/)